<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
<title>{$title}</title
><link href="{MODULE_URL}images/css/owl.carousel.css" rel="stylesheet">
<link href="{MODULE_URL}images/css/public.css" rel="stylesheet" type="text/css" />
<link href="{MODULE_URL}images/css/index.css" rel="stylesheet" type="text/css" />
<link href="{MODULE_URL}images/weui.css" rel="stylesheet" type="text/css" />
<link href="{MODULE_URL}images/weui2.css" rel="stylesheet" type="text/css" />

<script src="{MODULE_URL}images/js/jquery-1.8.3.min.js"></script>
<script src="{MODULE_URL}images/js/owl.carousel.min.js"></script>
<script src="{MODULE_URL}images/layer/layer.js"></script>
<script src="{MODULE_URL}images/zepto.min.js"></script>
</head>

<body>

<div class="mobile">
<form data-role="form" action="./index.php" method="get" class="index-search ">
 <input type="hidden" name="i" value="{$_W['uniacid']}">
    <input type="hidden" name="c" value="{$_GPC['c']}">   
    <input type="hidden" name="do" value="list">
    <input type="hidden" name="m" value="{$_GPC['m']}">
<div class="input-wrapper">
<input type="search" placeholder="搜索商家、分类、地点" autocomplete="off" data-role="input" maxlength="20" name="keyword" class="input">
<i data-role="clear" class="clear"></i>
<button data-role="submit" type="submit" class="submit"></button>
</div>
</form>

<div class="weui_tab weui_tab_red"  style="height:55px;">
            <div class="weui_navbar">
               <a class="weui_navbar_item {if $op=='day'}tab-red{/if}" href="{php echo $this->createMobileUrl('paihang', array('op'=>'day'));}">
                  日榜
                </a>
                <a class="weui_navbar_item {if $op=='week'}tab-red{/if}" href="{php echo $this->createMobileUrl('paihang', array('op'=>'week'));}">
                  周榜
                </a>
               <a class="weui_navbar_item {if $op=='month'}tab-red{/if}" href="{php echo $this->createMobileUrl('paihang', array('op'=>'month'));}">
                  月榜
                </a>
              <a class="weui_navbar_item {if $op=='year'}tab-red{/if}" href="{php echo $this->createMobileUrl('paihang', array('op'=>'year'));}">
                  年榜
                </a>
            </div>
        </div>
  
  <div class="m_baoliao w" style="padding-bottom: 55px">
   
    <div class="baoliao_list" style="width:100%">
    {loop $business $key $business}  
    {php $pic = iunserializer($article[$business['business_id']]['logo'])}

              <section class="good">
                  <a  href="{php echo $this->createMobileUrl('content', array('id'=>$business['business_id']));}" class="good-content">
                  <div class="img-wrapper">
                  <div class="img-placeholder">
                  <img width="120" height="72" data-role="deal-img" src="{php echo tomedia($pic['0'])}" style="visibility: visible;">
                  </div>
                  <span class="tag reservation"></span>                  
                  </div>
                  <div class="info-wrapper">
                  <div class="title-line ">
                  <div class="title">
                  <h3 class="item-name">{$article[$business['business_id']]['title']}</h3></div>
                  <span class="distance"></span>
                  <span class="store"><label class="ui-label-s">NO.{php echo $key + 1}</label></span>
                  </div>
                  <p class="desc">{$article[$business['business_id']]['desc']}...</p>
                
                  <p class="price-line" style="font-size:12px;color:#000;">
                  <span>{$categories[$article[$business['business_id']]['categoryid']]['name']}{$categories[$article[$business['business_id']]['categoryid_2']]['name']}</span>
                  <span class="bought">{php echo $this->friendlyDate($business['time'])}  已看{$business['click']}次</span>
                  </p>
                  </div>
                  </a>
        </section>
    {/loop}
    </div>
  
  </div>
 {template 'footer'}

</div>
<div class="gotop backtop" style="display:none;"></div>

</body>
</html>
<script type="text/javascript">
//返回顶部
$(document).ready(function(){
  $(window).scroll(function () {
    var scrollHeight = $(document).height();
    var scrollTop = $(window).scrollTop();
    var $windowHeight = $(window).innerHeight();
    scrollTop > 75 ? $(".gotop").fadeIn(200).css("display","block") : $(".gotop").fadeOut(200).css({"background-image":"url({MODULE_URL}images/images/iconfont-fanhuidingbu.png)"});
  });
  $('.backtop').click(function (e) {
    $(".gotop").css({"background-image":"url(images/iconfont-fanhuidingbu_up.png)"});
    e.preventDefault();
    $('html,body').animate({ scrollTop:0});
  });
});
</script>